package com.info.zhiduoduo.repository.mapper.evaluate;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.info.zhiduoduo.repository.entity.evaluate.EvaluateTagConfig;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cuichenglong
 * @since 2020-12-23
 */
public interface EvaluateTagConfigMapper extends BaseMapper<EvaluateTagConfig> {

    @Select(" SELECT * FROM zdd_evaluate_tag_config " +
            " WHERE tag_state = 1 " +
            " AND IF(#{evaluateType} = 0, 1 = 1, evaluate_type = #{evaluateType}) ")
    List<EvaluateTagConfig> queryEvaluateTagByEvaluateType(int evaluateType);

}
